package com.demo.annotation;

import org.springframework.stereotype.Controller;
import javax.annotation.Resource;


/**
 * Created by win10 on 2020/2/5 11:28
 */
@Controller("action")
public class action {
/*    @Autowired //类型
    private service service;*/
    @Resource(name = "service") //名称
    private service service;

/*    public void setService(com.demo.annotation.service service) {
        this.service = service;
    }*/

    public void add(){
        service.add();
        System.out.println("action........");
    }
}
